package com.itheima.Test;
//学生类
public class Student extends Person1 {
        private String school; // 所在学校

    public Student() {
    }
    public Student(String name, int age, String birthday, String school) {
        super(name, age, birthday);
        this.school = school;
    }
    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }
    /*
    getters and setters请自行生成
    */
        // 获取信息的方法
        public String getInfo() {
            return "Student[name=" + getName() + ", age=" + getAge() + ", birthday=" + getBirthday() + "," + "school=" + school + "]";
        }
    }

